package xginxim

import (
	"gitee.com/xiaoyutab/xgotool/optional/xim"
	"gitee.com/xiaoyutab/xgotool/xgin"
)

// 获取我的最近聊天记录
//
//	GET	user.lately.chat
func userLatelyChat(uid uint, b []byte) *xgin.Response {
	chat, err := xim.MyChat(uid)
	if err != nil {
		return xgin.Resp().Error(err)
	}
	return xgin.Resp().NoPage(nil, chat, len(chat))
}
